
#ifndef __RF_DEF_H__
#define __RF_DEF_H__

#include <stdint.h>

#define PARAM_RF_VENUS_BYTES_LEN       (96)

typedef struct
{
	uint32_t ana_cfg0;        //0004
	uint32_t ana_cfg1;        //0008
	uint32_t ana_cfg2;        //000C
}ANACFG;

typedef struct
{
	ANACFG   ana1; //only 40M
	ANACFG   ana2; //all on
	ANACFG   ana3; //all off/only 40M
	ANACFG   ana4; //all off
	uint32_t ramp_pll_cfg;      
	uint32_t ramp_syncw_cfg;    
	uint32_t ramp_chirpw_cfg;   
	uint32_t ramp_wm_cfg0;       
	uint32_t ramp_mem03;        
	uint32_t ramp_mem02;        
	uint32_t ramp_mem01;        
	uint32_t ramp_mem00;        
	uint32_t ramp_mem13;        
	uint32_t ramp_mem12;        
	uint32_t ramp_mem11;        
	uint32_t ramp_mem10;	      
	uint8_t RFU[28];					    
	uint16_t crcLen;            //0x7C
	uint16_t crcVal;            //0x7E
}PARAM_ANA_VENUS;

#define ANA_VENUS_BASEADDR    (0x4002C000)

typedef struct
{
	uint32_t sys_sta0;         //0x4002C000
	uint32_t res0[1];          //0x4002C004
	uint32_t ramp_pll_cfg;     //0x4002C008
	uint32_t ramp_syncw_cfg;   //0x4002C00C
	uint32_t ramp_chirpw_cfg;  //0x4002C010
	uint32_t ramp_wm_cfg0;     //0x4002C014
	uint32_t res1[10];         //0x4002C018
	uint32_t ana_cfg0;         //0x4002C040
	uint32_t ana_cfg1;         //0x4002C044
	uint32_t ana_cfg2;         //0x4002C048
	uint32_t res2[29];         //0x4002C04C
	uint32_t ramp_sta0;        //0x4002C0C0
	uint32_t ramp_sta1;        //0x4002C0C4
	uint32_t ramp_sta2;        //0x4002C0C8
	uint32_t ramp_sta3;        //0x4002C0CC
	uint32_t res3[12];         //0x4002C0D0
	uint32_t ramp_mem03;       //0x4002C100
	uint32_t ramp_mem02;       //0x4002C104
	uint32_t ramp_mem01;       //0x4002C108
	uint32_t ramp_mem00;       //0x4002C10C
	uint32_t ramp_mem13;       //0x4002C110
	uint32_t ramp_mem12;       //0x4002C114
	uint32_t ramp_mem11;       //0x4002C118
	uint32_t ramp_mem10;       //0x4002C11C
	uint32_t res4[56];         //0x4002C120
	uint32_t ramp_cmd;         //0x4002C200
}ANA_VEUNS_ST;

#define VENUS_WAVE_START     (0x00)
#define VENUS_WAVE_STOP      (0x02)
#define VENUS_WAVE_CLEAR     (0x03)

#endif
